package com.changli04.override.test1;

public class OrderTest {
    public static void main(String[] args) {
        Order o1 = new Order();
        o1.idpublic = 1;
        //o1.idprivate; 访问权限受限制
        o1.iddefault = 1;
        o1.idprotected = 1;
        o1.methoddefault();
        o1.methodprotected();
        o1.methodpublic();
//        o1.methodprivate();访问权限受限
    }
}
